package com.test.modifier;

public class A {
    public int a = 1;
    protected int b = 2;
    int c = 3;
    private int d = 4;

    public void show1(){
        // 同一个包中，同一个类可以访问四个属性
        System.out.println(a);
        System.out.println(b);
        System.out.println(c);
        System.out.println(d);
    }
}


